package com.proj.service;

import com.proj.mapper.UserMapper;
import com.proj.pojo.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("userService")
public class UserServiceimpl implements UserService{

    @Resource
    private UserMapper userMapper;

    @Override
    public List<User> getUserList() {
        return userMapper.getUserList();
    }

    @Override
    public boolean addUser(User user) {
        return userMapper.addUser(user)>0?true:false;
    }
}
